You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > TMtx Class > TMtx Methods > Disown Method > TMtx.Disown Method (out double[], out int, out int, out int, out bool)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
TMtx.Disown Method (out double[], out int, out int, out int, out bool)

Disowns a pointer to an array from matrix Values1D.

Syntax
C#
Visual Basic
public void Disown(out double[] aArray, out int aIndex, out int aRows, out int aCols, out bool aIsComplex);

The method does the opposite of the Adopt method. It will set the AArrays to Pointer(Values), ARows and ACols to matrix's Rows and Cols and IsComplex to matrix TMtxVec.ComplexComplexproperty. Use the Disown method to "disconnect" AArray from the TMtx.Values1D. Disown sets Values1D and CValues1D array pointers to nil and Rows, Cols properties to ACols, but without freeing the allocated memory. The allocated memory can be disowned only, if it was adopted with a call to the Adopt method.

Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!